package com.config.tomcat;

import org.apache.coyote.ProtocolHandler;
import org.springframework.boot.web.embedded.tomcat.TomcatProtocolHandlerCustomizer;
import org.springframework.stereotype.Component;

/**
 * @author chengyadong
 * @date 2023/9/20 15:23
 * @description tomcat初始化过程自定义protocolHandler
 */
@Component
public class TomcatProtocolHandlerCustomizersTest implements TomcatProtocolHandlerCustomizer {
	@Override
	public void customize(ProtocolHandler protocolHandler) {
		System.out.println("协议处理器绑定的适配器:="+protocolHandler.getAdapter());
	}
}
